
const conn = require("./db/mongoose");
const mongoose = conn.mongo;

const Schema = mongoose.Schema;

const ClubStatSchema = new Schema({
    clubId : {type:Number, default:0}, //俱乐部Id
    dateStr : String, //日期
    gt : {type:Number},
    sum : {type:Number, default:0}, 
    finish :{type:Number, default:0},
    win :{type:Number, default:0},
    gems :{type:Number, default:0},
    createAt : {type:Number, default:Date.now()}
});

const ClubStatModel = mongoose.model("clubStat",ClubStatSchema);

module.exports = ClubStatModel;